package nml.mail.reg.smtp;
import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class  nokia_com extends Reg{

	public void reg(String username, String password) {		
		

		String url = "https://account.nokia.com/acct/register?serviceId=Ovimail&lang=en-US&returnurl=https%3A%2F%2Fwww.nokiamail.com%2Fhome%3Fregister%3Dtrue";
		get(url);
		
		dr.findElement(By.name("userName")).sendKeys(username);
		dr.findElement(By.name("newPassword")).sendKeys(password);
		dr.findElement(By.name("newPasswordVerify")).sendKeys(password);
		
		dr.findElement(By.name("dobMonth")).sendKeys("21");
		dr.findElement(By.name("dobDay")).sendKeys("10");
		dr.findElement(By.name("dobYear")).sendKeys("1990");
		
		dr.findElement(By.name("email")).sendKeys("nml186@126.com");
		
 	
		dr.findElement(By.name("captcha")).click();
		
		System.out.println(username+"@nokia.com");
		
	}

	public static void main(String[] args) {
		new nokia_com().reg("qq331798654", "qq3131798654");
	}
	
	
}
